#ifndef _NETWORKCHAT_H_
#define _NETWORKCHAT_H_

// defineuri comune clientului si serverului
#define NC_MAX_USERNAME 100
#define NC_MAX_PASSWORD 100

// trimise de server
#define NC_USERNAME_REQUEST		1
#define NC_PASSWORD_REQUEST		3
#define NC_AUTH_OK				5
#define NC_AUTH_FAILED			6
#define NC_BROADCAST			7
#define NC_SHUTDOWN				10

// trimise de client
#define NC_USERNAME_RESPONSE	2
#define NC_PASSWORD_RESPONSE	4
#define NC_MESSAGE				8
#define NC_LOGOUT				9

#endif
